/*var buf1 = Buffer.from('湖南幼专');
console.log(buf1);
console.log(buf1.toString());
*/


/*
const buf2 =Buffer.from('中惠科技');
console.log(buf2);
console.log(buf2.toString());
console.log(buf2.toString('utf-8'));
console.log(buf2.toString('base64'));
*/


/*
var buf = Buffer.alloc(26);
for(var i=0;i<26;i++){
    buf[i] = i+65;
}
console.log(buf);
console.log(buf.toString());
console.log(buf.toJSON());//输出数据
*/


var buf1 = Buffer.alloc(26);
for(var i=0;i<26;i++){
    buf1[i] = i+65;
}

var buf2 = Buffer.alloc(26);
for(var i=0;i<26;i++){
    buf2[i] = i+97;
}

var buf3 = Buffer.concat([buf1,buf2]);//concat作用：按顺序连接两个缓存区
console.log(buf3.toString());